package com.itheima.day18.枚举类型;

public enum Demo1 {
    SPRING,SUMMER,AUTUMN,WINTER;
    int a=100;
//    public abstract void method();

    private  Demo1() {}

    Demo1(int a) {
        this.a = a;
    }
}

class Test{
    public static void main(String[] args) {
        System.out.println(Demo1.SPRING);
        Demo1 spring = Demo1.SPRING;
        System.out.println(Demo1.SPRING.a);

    }
}